package com.example.pharmacypick.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class PageInfo<T> {

    private Long count;

    private List<T> data;

    public PageInfo(Long count, List<T> data) {
        this.count = count;
        this.data = data;
    }

    public PageInfo(List<T> data){
        this.data=data;
    }
}
